﻿using System.Text.Json;

namespace Iot.Models
{
    public static class MQTTTOPIC
    {
        public const string UPDATE = "home/update";
        public const string CONTROL = "home/control";
        public const string SOUND = "home/sound";
    }

    public class MQTTMessage
    {
        public string? Msg { get; set; }
        public string? From { get; set; } = "SERVER";
        public string? To { get; set; } = "e098060e71ef";
        public int GPIO { get; set; }

        public override string ToString()
        {
            return JsonSerializer.Serialize(this);
        }
    }
}
